<?php

namespace common\models\credit_old_app_tables;

use Yii;

/**
 * This is the model class for table "{{%eloaninfo}}".
 *
 * @property string $e_o_number 订单号
 * @property string $e_orderNo e分期订单编号
 * @property int $e_status e分期订单状态
 * @property string $e_remark
 * @property string $e_add_time
 * @property string $e_refuse_time
 */
class SlEloaninfo extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%eloaninfo}}';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db_old_app');
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['e_o_number'], 'required'],
            [['e_status'], 'integer'],
            [['e_add_time', 'e_refuse_time'], 'safe'],
            [['e_o_number'], 'string', 'max' => 20],
            [['e_orderNo'], 'string', 'max' => 50],
            [['e_remark'], 'string', 'max' => 255],
            [['e_o_number'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'e_o_number' => Yii::t('app', '订单号'),
            'e_orderNo' => Yii::t('app', 'e分期订单编号'),
            'e_status' => Yii::t('app', 'e分期订单状态'),
            'e_remark' => Yii::t('app', 'E Remark'),
            'e_add_time' => Yii::t('app', 'E Add Time'),
            'e_refuse_time' => Yii::t('app', 'E Refuse Time'),
        ];
    }
}
